﻿using System.ComponentModel;

namespace Sgr.Identity
{
    /// <summary>
    /// 用户登录方式
    /// </summary>
    public enum AccountLoginWay
    {
        /// <summary>
        /// 未定义
        /// </summary>
        Default = 0,

        /// <summary>
        /// 账号密码登录
        /// </summary>
        [Description("账号密码登录")]
        Password = 1,

        /// <summary>
        /// 手机验证码登录
        /// </summary>
        [Description("手机验证码登录")]
        PhoneVerification = 2,

        /// <summary>
        /// 邮箱验证码登录
        /// </summary>
        [Description("邮箱验证码登录")]
        EmailVerification = 4,

        /// <summary>
        /// 刷新令牌
        /// </summary>
        [Description("刷新令牌")]
        RefreshToken = 8
    }
}